<?php
class Session{
	
	public static function setVar($name,$value){
		$_SESSION[$name]=$value;
	}
	
	public static function getVar($name,$default=null){
		if(isset($_SESSION[$name]))
			return $_SESSION[$name];
		else if($default!=null)
			return $default;
		return false;
	}
	
	public static function deleteVar($name){
		if(isset($_SESSION[$name])){
			$temp=$_SESSION[$name];
			unset( $_SESSION[$name]);
			return $temp;
		}	
		return false;
	}
	
	
}
?>